<template>
  <div class="query">
    <div class="content">
      <h3>查询条件</h3>
      <el-form :inline="true" :model="formInline" class="demo-form-inline">
        <el-form-item label="管理员角色">
          <el-select v-model="formInline.region" placeholder="活动区域">
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="操作日期" >
          <el-date-picker
            v-model="dateValue"
            type="daterange"
            start-placeholder="开始日期"
            end-placeholder="结束日期"
            :default-time="['00:00:00', '23:59:59']">
          </el-date-picker>
        </el-form-item>
        <el-form-item>
          <el-button  @click=""><i class="el-icon-refresh"></i>重置</el-button>
          <el-button type="primary" @click="onSubmit"><i class="el-icon-search"></i>查询</el-button>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>

<script>
export default {
  name: "body",
  data(){
    return {
      formInline: {
        user: '',
        region: '',
        dateValue:''
      }
    }
  },
  methods :{
    onSubmit() {
      console.log('submit!');
    }
  }
}
</script>

<style scoped>
  .query{
    /*height: 250px;*/
    border: 1px solid white;
    width: 96%;
    margin: auto;
    padding-left: 20px;
    padding-bottom: 20px;
    box-sizing: border-box;
    background-color: white;
  }
</style>
